package com.stadium.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * 赛事详情
 *
 * @author wsl
 * @email
 * @date 2021-05-04 09:39:10
 */
@Data
@ApiModel(value = "赛事详情")
public class GameEvent implements Serializable{
private static final long serialVersionUID=1L;

            @Length(min = 0, max =36)
    @ApiModelProperty(value = "id")
    private String id;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "用户id")
    private String userId;

            @Length(min = 0, max =36)
    @ApiModelProperty(value = "赛事分类id")
    private String categoryId;

            @Length(min = 0, max =50)
    @ApiModelProperty(value = "名称")
    private String name;

            @Length(min = 0, max =100)
    @ApiModelProperty(value = "地点")
    private String address;

            @Length(min = 0, max =100)
    @ApiModelProperty(value = "场馆")
    private String stadium;

            @Length(min = 0, max =0)
    @ApiModelProperty(value = "报名费用")
    private Double registrationFee;

        @ApiModelProperty(value = "报名开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date registrationStarttime;

        @ApiModelProperty(value = "报名结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date registrationEndtime;

        @ApiModelProperty(value = "比赛时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date competitionStarttime;

        @ApiModelProperty(value = "比赛结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date competitionEndtime;

            @Length(min = 0, max =50)
    @ApiModelProperty(value = "主办方")
    private String sponsor;

            @Length(min = 0, max =50)
    @ApiModelProperty(value = "联系电话")
    private String phoneNum;

            @Length(min = 0, max =500)
    @ApiModelProperty(value = "赛事logo")
    private String logo;

            @Length(min = 0, max =500)
    @ApiModelProperty(value = "背景图")
    private String background;

            @Length(min = 0, max =65535)
    @ApiModelProperty(value = "比赛规则")
    private String ruleId;

            @Length(min = 0, max =255)
    @ApiModelProperty(value = "注意事项")
    private String remark;

            @Length(min = 0, max =10)
    @ApiModelProperty(value = "状态码（0：正常，1：异常）")
    private String statusCode;

            @Length(min = 0, max =10)
    @ApiModelProperty(value = "删除码（0：正常 1：删除）")
    private String deleteCode;

        @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

            @Length(min = 0, max =36)
    @ApiModelProperty(value = "创建人")
    private String createUser;

        @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

            @Length(min = 0, max =36)
    @ApiModelProperty(value = "更新人")
    private String updateUser;

}
